package com.ddstation.onsitelaw.service;

import com.ddstation.onsitelaw.entity.auditentity.DdDoctorEntity;
import com.ddstation.onsitelaw.model.DoctorModel;
import com.ddstation.onsitelaw.model.DtPrescriptionTemplateManageModel;
import com.ddstation.onsitelaw.model.HealthInstitutionModel;
import com.ddstation.onsitelaw.utils.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 忆秋枫
 */
public interface DtHealthManageInstitutionService {

    /**
     * 根据地区code获取机构信息
     *
     * @param province 省
     * @param city     市
     * @param county   县/区
     * @return List<Map < String, Object>> 对象信息
     */
    List<Map<String, Object>> selectByAddress(@Param("province") String province, @Param("city") String city, @Param("county") String county);

    /**
     * 健康机构集合
     *
     * @param paramMap
     * @return
     */
    PageResult selectAllHealthManageList(HashMap paramMap);

    /**
     * 新增医疗机构
     *
     * @param healthInstitutionModel
     */
    void saveInstitutionalInfo(HealthInstitutionModel healthInstitutionModel);


    /**
     * 获取对应健康机构
     *
     * @param paramMap
     * @return
     */
    PageResult getHealthManageList(HashMap paramMap);

    /**
     * 保存处方图片
     *
     * @param dtPrescriptionTemplateManageModel
     */
    void savePrescriptionTemplate(DtPrescriptionTemplateManageModel dtPrescriptionTemplateManageModel);


    /**
     * 查询处方模板
     *
     * @param institutionId
     * @return
     */
    List<DtPrescriptionTemplateManageModel> selectPrescriptionTemplate(String institutionId,String templateSign);

    /**
     * 主键查询处方模板
     *
     * @param templateId
     * @return
     */
    DtPrescriptionTemplateManageModel selectPreTempByPrimaryKey(Integer templateId);

    /**
     * 更新机构处方模板
     *
     * @param institutionId
     */
    void deletePrescriptionTemplate(String  institutionId);

    /**
     * 通过机构获取医生信息
     *
     * @param institutionId
     */
    List<DoctorModel>  getDoctorByInstitutionId(String institutionId);

    /**
     * 获取医生信息
     * @param doctorId
     * @return
     */
    DdDoctorEntity selectDoctorInfoByKey(String doctorId);

}